<?php
$arrHotNewsTeam = array();
if(!empty($this->arrData))
{
    $arrData = array_values($this->arrData);

    if(count($arrData) > 3){
        $arrHotNewsTeam[0] = array_splice($arrData, 0, 3);
        $arrHotNewsTeam[1] = $arrData;
    }else{
        $arrHotNewsTeam[0] = $arrData;
        $arrHotNewsTeam[1] = array();
    }
    if(!empty($arrHotNewsTeam[0]))
    {
?>
<div class="football box_width_common box_col_670 news_box_320">
    <div class="title_cate">
        <p class="left"><?php echo $this->Categoryname($this->articleCategoryID); ?></p>
        <div class="txt_view_more"><a class="txt_gray" href="<?php echo $this->Categoryurl($this->articleCategoryID); ?>" title="Xem thêm" alt="Xem thêm">Xem thêm</a> <span class="icon_portal_thethao icon_view_more">&nbsp;</span></div>
    </div>
    <div class="content_cate">
        <?php if( !empty ($arrHotNewsTeam[0])){ ?>
        <ul class="list_news news_images">
            <?php 
            $last_key = key(array_slice($arrHotNewsTeam[0], -1, 1, TRUE));
            foreach ($arrHotNewsTeam[0] as $key => $team1_0 ){ ?>
            <li <?php echo ($last_key == $key ? 'class="end"' : '');?>>
                <?php if(!empty($team1_0['thumbnail_url'])){ ?>
                <a href="<?php echo $this->articleurl($team1_0); ?>" title="<?php echo $team1_0["title"];?>" alt="<?php echo $team1_0["title"];?>"><img src="<?php echo $this->imageurl($team1_0['thumbnail_url'], $this->imageSize['size4']);?>" width="73" height="54" title="<?php echo $team1_0["title"];?>" alt="<?php echo $team1_0["title"];?>"/></a>
                <?php } ?>
                <div class="decs">
                    <p><a href="<?php echo $this->articleurl($team1_0); ?>" class="txt_black_hover_blue" title="<?php echo $team1_0["title"];?>" alt="<?php echo $team1_0["title"];?>"><b><?php echo $team1_0['title'];?></b></a><?php echo $this->ArticleViewIcon($team1_0['privacy']); ?></p>
                    <p class="txt_gray txt_11"><?php echo $this->DateTimeFormat($team1_0['publish_time']);?> <span class="icon_portal_thethao icon_commend">&nbsp;</span> <?php  echo $this->articlecomment($team1_0); ?></p>
                </div>
            </li>
            <?php } ?>
        </ul>
        <?php } ?>
        <?php if( !empty ($arrHotNewsTeam[1])){ ?>
        <ul class="list_dot_3x3">
            <?php 
                $last_key = key(array_slice($arrHotNewsTeam[1], -1, 1, TRUE));
                foreach ($arrHotNewsTeam[1] as $k1_1 => $team1_1 ){
                $class = ( $k1_1 == $last_key)? 'class="end"': '';
            ?>
            <li <?php echo $class; ?>><a href="<?php echo $this->articleurl($team1_1); ?>" class="txt_gray" title="<?php echo $team1_0["title"];?>" alt="<?php echo $team1_0["title"];?>"><b><?php echo $team1_1['title'];?></b></a><?php echo $this->ArticleViewIcon($team1_1['privacy']); ?></li>
            <?php } ?>
        </ul>
        <?php } ?>
        <div class="clear">&nbsp;</div>
    </div>
</div>
<?php 
    } 
}
?>